package com.p7.notepad.adapter;

import android.widget.TextView;

import com.p7.notepad.R;
import com.p7.notepad.bean.File;
import com.tools.s7.adapter.BaseGeneralAdapter;

public class SpinnerAdapter extends BaseGeneralAdapter<File.DataBean> {

    @Override
    protected int bindLayoutId() {
        return R.layout.spinner_item;
    }

    @Override
    protected void initView(int i, File.DataBean dataBean, BaseViewHolder holder) {
        ((TextView) holder.getView(R.id.spinner_name)).setText(dataBean.getName());
    }
}
